<div class="left" style="width:180px;">

  <?php include_partial('content/branch3left', array('parentCategoryId'=>$category->getParentId(),'categoryIdO'=>$category->getId()));?>
   
</div> <!--sideleft-->


<?php $id = $content['id']?>

<div class="left" style="width:689px;text-align:center;border:0px solid red;border-left:6px solid green;margin-left:25px;
                          padding:0 25px;">
  
  <a href="<?php echo url_for('content/branch3?categoryId='.$content['category_id'])?>" class="title30"><?php echo $content['category_name']?></a>

  <hr style="border:0;border-bottom:1px solid #000;margin-top:8px;"/>

  <br clear="all">
  
  <?php echo image_tag("http://".$content['cover'], array('style'=>'max-width:400px;'))?>
  
  <br clear="all">
  <br clear="all">

  <a onclick="$('#contentBody<?php echo $id?>').slideDown(500);" href="#contentTitle<?php echo $id?>" 
     class="left title20" id="contentTitle<?php echo $id?>" style="color:#ff3322;">
      <?php echo $content['title']?>
  </a>
  
  <br clear="all">
  
  <div class="gray font11">

    <?php echo $content['intro']?> &nbsp; 

    <a onclick="$('#contentBody<?php echo $id?>').slideDown(500);" href="#contentTitle<?php echo $id?>" class="list-more" style="color:green;">үргэлжлүүлэн унших ...</a>
    
    <br clear="all">

    <div id="contentBody<?php echo $id?>" style="display:none;width:100%;" class="gray font11 justify">

        <?php echo $content['body']?> 

        <br clear="all">

        <a onclick="$('#contentBody<?php echo $id?>').slideUp();" href="#contentTitle<?php echo $id?>" class="right">
          <?php echo image_tag('up-arrow1.png', array())?>
        </a>
        
        <br clear="all">
        
    </div>
  </div>    
  
  
</div><!---->


<div class="left" style="width:689px;text-align:center;border:0px solid red;border-left:6px solid #ff3322;margin:35px 0 0 25px;padding:0;">
  <?php include_partial('content/branch3bottom', array('categoryId'=>$category->getId(),'idO'=>$id));?>
</div>



<script type="text/javascript">
function toggleContentBody()
{
  elm_id = '#contentBody<?php echo $id?>';

  if($(elm_id).css('display') == "none" || $(elm_id).css('display') == undefined)
  {
		$(elm_id).slideDown("slow");
  } else {
		$(elm_id).slideUp("fast");
  }
  
}
</script>

